package com.hotelsystem.pojo;

import java.util.Date;

public class Orders {
    private String ordersId;

    private Customer customer;

    private Room room;

    private Date reservedDate;

    private Date checkInDate;

    private Date checkOutDate;

    private Date liberateDate;

    private Double totalMoney;

    private Double repayMoney;

    private Status status;

//    private List<OrderDetail> orderDetails;  //存放订单明细信息

    public String getOrdersId() {
        return ordersId;
    }

    public void setOrdersId(String ordersId) {
        this.ordersId = ordersId == null ? null : ordersId.trim();
    }

    public Customer getCustomer() {
        return customer;
    }

    public void setCustomer(Customer customer) {
        this.customer = customer;
    }

    public Room getRoom() {
        return room;
    }

    public void setRoom(Room room) {
        this.room = room;
    }

    public Date getReservedDate() {
        return reservedDate;
    }

    public void setReservedDate(Date reservedDate) {
        this.reservedDate = reservedDate;
    }

    public Date getCheckInDate() {
        return checkInDate;
    }

    public void setCheckInDate(Date checkInDate) {
        this.checkInDate = checkInDate;
    }

    public Date getCheckOutDate() {
        return checkOutDate;
    }

    public void setCheckOutDate(Date checkOutDate) {
        this.checkOutDate = checkOutDate;
    }

    public Date getLiberateDate() {
        return liberateDate;
    }

    public void setLiberateDate(Date liberateDate) {
        this.liberateDate = liberateDate;
    }

    public Double getTotalMoney() {
        return totalMoney;
    }

    public void setTotalMoney(Double totalMoney) {
        this.totalMoney = totalMoney;
    }

    public Double getRepayMoney() {
        return repayMoney;
    }

    public void setRepayMoney(Double repayMoney) {
        this.repayMoney = repayMoney;
    }

    public Status getStatus() {
        return status;
    }

    public void setStatus(Status status) {
        this.status = status;
    }

//    public List<OrderDetail> getOrderDetails() {
//        return orderDetails;
//    }
//
//    public void setOrderDetails(List<OrderDetail> orderDetails) {
//        this.orderDetails = orderDetails;
//    }

    @Override
    public String toString() {
        return "Orders{" +
                "ordersId='" + ordersId + '\'' +
                ", customer=" + customer +
                ", room=" + room +
                ", reservedDate=" + reservedDate +
                ", checkInDate=" + checkInDate +
                ", checkOutDate=" + checkOutDate +
                ", liberateDate=" + liberateDate +
                ", totalMoney=" + totalMoney +
                ", repayMoney=" + repayMoney +
                ", status=" + status +
                '}';
    }
}